<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>测试</title>
	<script type="text/javascript">
		var x = prompt('请输入几行');
		var y = prompt('请输入几列');

		document.write("<table border='1'>");

		for (var k =1; k<=x ; k++) {
			document.write("<tr>");
				for (var i =1; i <= y; i++) {
					document.write("<td>");
					document.write("学并思");
					document.write("</td>");
				};
			document.write("</tr>");
		};

		document.write("</table>");

		// for (var i = 1; i < 100; i++) {
		// 	document.write(i);
		// };


	</script>
</head>
<body>
	
</body>
</html>